import request from '@/utils/request'

// 查询违规类目列表
export function listViolationCategory(query) {
  return request({
    url: '/business/violationCategory/list',
    method: 'get',
    params: query
  })
}

// 查询违规类目详细
export function getViolationCategory(id) {
  return request({
    url: '/business/violationCategory/' + id,
    method: 'get'
  })
}

// 新增违规类目
export function addViolationCategory(data) {
  return request({
    url: '/business/violationCategory',
    method: 'post',
    data: data
  })
}

// 修改违规类目
export function updateViolationCategory(data) {
  return request({
    url: '/business/violationCategory',
    method: 'put',
    data: data
  })
}

// 删除违规类目
export function delViolationCategory(id) {
  return request({
    url: '/business/violationCategory/' + id,
    method: 'delete'
  })
}
